package com.freedom.admin.infrastructure.persistence.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.freedom.common.core.base.BasePO;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@Accessors(chain = true)
public class SysPermissionPO extends BasePO {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;

    private Integer menuId;

    private String urlPerm;

    private String btnPerm;

    // 有权限的角色编号集合
    @TableField(exist = false)
    private List<String> roles;

}
